package com.manager.entity;

public class Pettrading {
    private Integer petid;

    private Boolean flag;

    private Integer money;

    /*除了flag自动。*/
    public Pettrading(Integer petid, Integer money) {
        this.petid = petid;
        this.money = money;
    }

    /*全体，用来做复合函数时用。*/
    public Pettrading(Integer petid, Boolean flag, Integer money) {
        this.petid = petid;
        this.flag = flag;
        this.money = money;
    }

    /*更新flag用。即可。【update购买时使用】(需要petid)*/
    public Pettrading(Integer petid, Boolean flag) {
        this.petid = petid;
        this.flag = flag;
    }

    public Integer getPetid() {
        return petid;
    }

    public void setPetid(Integer petid) {
        this.petid = petid;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }
}